package one_class_design.three_work;

/**
 * @author 北巷_东坡
 * @date 2022/9/16 20:10
 * @computer 10741
 */
public class Computer implements ComputerWeight{
    int cweight;
    double c_num;
    Computer(int cweight,double c_num){
        this.cweight=cweight;
        this.c_num=c_num;
    }
    @Override
    public double computeWeight() {
        return cweight*c_num;
    }
}
